package com.zc.app.sys.dao.mapper;

import com.zc.app.sys.dao.peer.SystemUserPeer;
import com.zc.app.sys.dao.peer.SystemUserPeerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

@Repository
public interface SystemUserPeerMapper {
    long countByExample(SystemUserPeerExample example);

    int deleteByExample(SystemUserPeerExample example);

    int deleteByPrimaryKey(@Param("accountId") Integer accountId);

    int insert(SystemUserPeer record);

    int insertSelective(SystemUserPeer record);

    /**
     * 分页显示用户信息
     * @param userPeer
     * @return
     */
    List<SystemUserPeer> querySysUsers(SystemUserPeer userPeer);

    List<SystemUserPeer> selectByExample(SystemUserPeerExample example);

    SystemUserPeer selectByPrimaryKey(Integer accountId);

    public SystemUserPeer selectByLoginName(@Param("loginName")String loginName);

    int updateByExampleSelective(@Param("record") SystemUserPeer record, @Param("example") SystemUserPeerExample example);

    int updateByExample(@Param("record") SystemUserPeer record, @Param("example") SystemUserPeerExample example);

    int updateByPrimaryKeySelective(SystemUserPeer record);

    int updateByPrimaryKey(SystemUserPeer record);
}